home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
asmmacros
/
am_02
/
deletefile.i
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
37 lines
NOLIST
DeleteFile MACRO ; 19 Dec 88
*------------------------------; Start of DeleteFile macro.
NOLIST
IFC '\1','I' ; If <PointerToFileName> is specified, then
LIST
; Put <PointerToFileName> in D1.
MOVE.L #\2,D1
NOLIST
IFEQ ReEntrant-1
LIST
ADD.L A5,D1
NOLIST
ENDC
ENDC
IFC '\1','D' ; If <FileName> is specified, then
LIST
; Make D1 point to <FileName>.
MOVE.L #\2.str,D1
NOLIST
IFND \2.str ; Unless it was previously defined,
LIST
SECTION DataSection,DATA ; The ASCII <FileName> string goes here.
\2.str:
DC.B '\2',0
CNOP 0,2
SECTION CodeSection,CODE
NOLIST
ENDC
ENDC
LIST
CallLib DeleteFile,dos ; Call DeleteFile to delete the file.
TST.L D0 ; Make the zero flag indicate failure.
*------------------------------; End of DeleteFile macro.
ENDM
LIST